//
//  imathbyfruitViewController.m
//  imathbyfruit
//
//  Created by Gopher on 10-12-25.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "sourcecodeViewController.h"

@implementation sourcecodeViewController


/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
        // Custom initialization
    }
    return self;
}
*/


- (id)initWithTitle:(NSString *)title withNavigationTitle:(NSString *)navTitle {
	
	if (self=[super init]) {
		// Custom initialization
		//[[self tabBarItem] setImage:[UIImage imageNamed:@"icon_help.png"]];
		
		self.title = title;
		self.navigationItem.title = navTitle;
	}
	
	return self;
}


/**/



// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
	CGRect bounds=[[UIScreen mainScreen] applicationFrame];
	[super loadView];
	textView =[[UITextView alloc] initWithFrame:bounds];
	textView.text=@"Hello World";
	[self.view addSubview:textView];	
	[textView release];	
}





/*
 
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
	
	UIView *contentView = [[[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame] autorelease];	
	contentView.autoresizesSubviews = YES;
	self.view = contentView;
	[self.view setBackgroundColor:[UIColor colorWithRed:0.14 green:0.18 blue:0.25 alpha:1.00]];
		
	
	CGRect bounds=[[UIScreen mainScreen] applicationFrame];
	[super loadView];
	textView =[[UITextView alloc] initWithFrame:bounds];
	UIColor *myBlue =[UIColor colorWithRed:0.0 green:0.0  blue:0.0 alpha:1.0];
	textView.textColor=myBlue;
    // UIFont *myFont =[UIFont fontwithName:@"Courier New" size:10.0];
	// textView.font=myFont;
	textView.editable=YES;
	NSURL *url=[NSURL URLWithString:@"http://www.google.com"];
	NSString *pageData=[NSString stringWithContentsOfURL:url];
	textView.text=pageData;
	[self.view addSubview:textView];	
	[textView release];	
}
*/


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/


// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
	[textView dealloc];
    [super dealloc];
}

@end
